<?php
    include('custom-script/slider.php');
    include ('custom-script/search_suggestion.php');
	/**
	 * GET COUPON DETAIL
	 */
	include ('custom-script/get_coupon_detail.php');
    /**
	 * GET COUPON DETAIL + STORE IMAGE
	 */
	include ('custom-script/get_coupon_detail_2.php');
	/**
     * GET COUPON DETAIL + STORE IMAGE
	 */
	include ('custom-script/get_coupon_detail_3.php');
	/**
	 * CREATE THEME SETTINGS PAGE
	 */
	if (is_admin())
		include ('custom-script/create_custom_setting_page.php');
	/**
	 * DISABLE AFF LINK FOR SOME USER
	 */
	include ('custom-script/admin-store-scripts/disable_aff_link.php');
	/**
	 * REMOVE ADMIN MENU WITH SOME USER
	 */
	include ('custom-script/remove_admin_menu.php');
	if (is_admin())
		add_action('admin_init', 'cpx_remove_menu_pages');

	/**
	 * DISABLE SUBMIT FOLLOW IF EMAIL ADDRESS NULL
	 */
	if (is_active_widget(false, false, 'follow', true)) // only load when Subscribe widget is active

		include ('custom-script/disable_submit_follow_btn.php');
	/**
	 *  1. Display Categories of store as check box
	 *  2. Display Events of coupon as radio
	 */
	include ('custom-script/admin-store-scripts/display_storecategory_as_checkbox.php');
	include ('custom-script/admin-store-scripts/display_event_as_radio.php');

	/**
	 * include HTML vote coupon
	 * @return HTML Vote coupon
	 */
	include ('custom-script/vote_coupon.php');

	/**
	 * AUTO CHANGE COUPON RATE
	 * Add script to admin panel
	 */
	if (is_admin())
		include ('custom-script/admin-coupon-scripts/auto_calculate_coupon_rate.php');
	/**
	 * VISIBLE/INVISIBLE SELECT COUPON TYPE - ADMIN
	 */
	if (is_admin())
		include ('custom-script/admin-coupon-scripts/invisible_select_coupon_type.php');

	/**
	 * POPUP
	 */
	include ('custom-script/popup_click_code.php');

	/**
	 * COMMENT AT COUPON
	 */
	include ('custom-script/comment.php');
	/**
	 * ADD ADMIN STORE FILTER IN STORES LIST
	 */
	if (is_admin())
	{
		global $pagenow;
		if ($pagenow == 'edit.php')
			include ('custom-script/admin-store-scripts/filter_store_description.php');
	}
	/**
	 * ADD ADMIN STORE NAME FILTER IN COUPONS LIST
	 */
	if (is_admin())
	{
		global $pagenow;
		if ($pagenow == 'edit.php')
			include ('custom-script/admin-coupon-scripts/filter_coupon_by_storename.php');
	}
	/**
	 * ADD COLUMN STORE-NAME IN COUPONS ADMIN LIST PAGE
	 */
//	if (is_admin())
//	{
//		global $pagenow;
//		if ($pagenow == 'edit.php')
//			include ('custom-script/admin-coupon-scripts/add_coupon_columns.php');
//	}

	/**
	 * ADD COLUMN TOTAL COUPONS IN STORE ADMIN LIST PAGE
	 */
//	if (is_admin())
//	{
//		global $pagenow;
//		if ($pagenow == 'edit.php')
//			include ('custom-script/admin-store-scripts/add_store_columns.php');
//	}
	/**
	 * ADD ALERT IMAGE TO ADMIN STORE LISTING WHEN EMPTY STORE DESCRIPTION
	 */
	//	if (is_admin())
	//	{
	//		global $pagenow;
	//		if ($pagenow == 'edit.php')
	//			include ('custom-script/admin-store-scripts/add_alert_empty_store_des.php');
	//	}

	/**
	 * ADD MASK LINK WHEN PUBLISH STORE
	 */
	include ('custom-script/add_mask_link.php');
    /**
     * UPDATE STORE AFF OUT LINK WHEN TEXT CHANGE
     */
    include('custom-script/admin-store-scripts/update_outlink.php');
    /**
     * CHECK DUPLICATE STORE NAME WHEN ADD NEW
     */
    include('custom-script/admin-store-scripts/check_duplicate_storename.php');

    include('custom-script/user_login.php');
    /**
     * LOAD SCRIPT LISTING COUPON COMMENTS
     */
    include('custom-script/listing_cp_comment.php');
    include('custom-script/ajaxurl.php');
    include('custom-script/submit_coupon.php');
    include('custom-script/filter_category.php');
    /*feedback*/
    include('custom-script/feedback.php');
    //include('custom-script/check_url.php');
    if(is_admin())
        include('custom-script/email_schedule_jq.php');

?>
